const path = require('path')

module.exports = {
  mode: "development",
  entry: "./main.js",
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: "bundle.js"
  },
  module:{
    rules: [
      {
        test: /\.css$/i,
        // loader: 转换
        // .css => .js
        // webpack js
        // 从后往前执行 <=
        use:["style-loader", "css-loader"]
      }
    ]
  }
}